package com.cq.hd.member.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class BusinessPointsMallGoodsDto implements Serializable {

    @ApiModelProperty(value = "自增id")
    private Long id;

    @ApiModelProperty(value = "商家id")
    private Long businessId;

    @ApiModelProperty(value = "商品结算价格", allowEmptyValue = true)
    private BigDecimal amount = BigDecimal.ZERO;

    @ApiModelProperty(value = "上架数量")
    private Integer totalNum;

    @ApiModelProperty(value = "使用期限，x天")
    private Integer dayLimit;

    @ApiModelProperty(value = "兑换需x积分")
    private BigDecimal requiredPoints;

    @ApiModelProperty(value = "商品名称[核销商品]")
    private String goodsName;

    @ApiModelProperty(value = "商品图片[核销商品]")
    private List<String> goodsImages;

    @ApiModelProperty(value = "适用商户id[核销商品]")
    private List<Long> merchantIds;

    @ApiModelProperty(value = "商品详情[核销商品]")
    private String details;

    @ApiModelProperty(value = "生效时间")
    private LocalDateTime effectiveTime = LocalDateTime.now();
}
